local lhs "cog"
local rhs "hours"
local robust "simple"
local controls "${CONTROLlist_`lhs'}"
local subsample = "$subsample"
local type "het"

use "$datapath/000_`type'_byK.dta", clear
gen ub=b_HetSymm + 1.96*se_HetSymm
gen lb=b_HetSymm - 1.96*se_HetSymm
gen ubA=bA_HetSymm + 1.96*seA_HetSymm
gen lbA=bA_HetSymm - 1.96*seA_HetSymm

twoway (line b_HetSymm Kcluster, lcolor(black)) || (rarea lb ub Kcluster, color(gs2%50)), yscale(range(-0.08 .02)) ylabel(-0.08(.02)0.02) xtitle(K) ytitle("{&beta}") legend(off) scheme(s1mono)
graph export "$figpath/b_`type'_byK.pdf", replace


twoway (line bA_HetSymm Kcluster, lcolor(black)) || (rarea lbA ubA Kcluster, color(gs2%50)), yscale(range(-0.08 .02)) ylabel(-0.08(.02)0.02) xtitle(K) ytitle("{&beta}{sub:A}") legend(off) scheme(s1mono)
graph export "$figpath/bA_`type'_byK.pdf", replace
